package com.witnsoft.mteaf.core.exception;

import java.lang.Exception;

public class BaseException extends Exception{

  Throwable myException;
  private int errorCode;

  public BaseException() {
  }

  public BaseException(String s ){
      super(s);
  }

  public BaseException(Exception ex){
      super(ex.toString());
  }

  public BaseException(String s, Throwable ex){
      super(s);
      this.myException = ex;
  }

  public BaseException(int errorCode,String msg)
  {
    super(msg);
    this.errorCode = errorCode;
  }

  public BaseException(int errorCode,String msg,Throwable e){
    super(msg);
    this.errorCode = errorCode;
    this.myException = e;
  }

  public int getErrorCode(){
    return this.errorCode;
  }
}
